import api from "./api/api.js";
var headUrl;
export default class {
  constructor(config) {
    headUrl = config.getUrl();
  }


  getFundData(isShowLoading,id) {
    return api.getUrl(isShowLoading, headUrl + `/${id}.js`,{
      rt:"1463558676006"
    });
  }





}

// 微信支付
function wxPay(data, callback) {
  if (!data) {
    callback(false);
  } else {
    wx.requestPayment({
      timeStamp: data.timeStamp,
      nonceStr: data.nonceStr,
      "package": data.packageData,
      signType: data.signType,
      paySign: data.paySign,
      success(e) {
        callback(true);
      },
      fail(e) {
        callback(false);
      }
    });
  }
}